Skip to main content

pendingMessages

Type

function

Summary

Returns a list of messages that have been scheduled with the send command, but not yet delivered.

Syntax

the pendingMessages
pendingMessages()

Description

Use the pendingMessages function to check whether a message has been sent yet, or to perform some action on each pending message.

The time the message is scheduled for is in the same format as the long seconds form of the seconds function.

Once scheduled, a message cannot be changed. You can cancel a pending message with the cancel command, and re-send it with the send command.

Examples

the pendingMessages
repeat with x = 1 to the number of lines of the pendingMessages

Value

NameTypeDescription

return

The pendingMessages function returns a list of messages, one per line. Each line consists of four items, separated by commas:

  1. the message ID
  2. the time the message is scheduled for (in seconds, Unix epoch time)
  3. the message name
  4. the long ID property of the object that the message
   will be sent to

the result

The message ID is the same as the one placed in the result function when it was scheduled with the send command.

command: cancel, send

control structure: function

glossary: property, message, command, return, object

keyword: items

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?